<!--11-JS中自定义对象.html-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS中自定义对象</title>
    <script type="text/javascript">

        var obj = new Object();
        obj.addr = "ylaihui";
        obj.edu = "Algo";

        obj.showfun = function () {
            console.log(this.addr + ".com");
        }
        obj.showfun();
        console.log(obj.edu);
    </script>
</head>
<body>

</body>
</html>